package com.itbaizhan.service;

import com.itbaizhan.pojo.Order;
import com.itbaizhan.result.BaseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author spf
 * @date 2024/3/8
 * @time 17:37
 */
@FeignClient(value = "livegoods-order")
public interface OrderServiceOpenFeign {

    @GetMapping("/order/findOrders")
    BaseResult<List<Order>> getOrders(@RequestParam("user") String user);

}
